package com.project.restaurant.user.service;

import com.project.restaurant.common.api.ServiceReturn;
import com.project.restaurant.pojo.User;
import com.project.restaurant.user.dto.RegisterInfo;

import javax.validation.constraints.Email;
import java.io.IOException;

public interface RegisterService {

    boolean selectByAccount(String account);

    boolean selectPhone(String userPhone);

    boolean selectEmail(String email);

    boolean sendRegisterAuthCodeToEmail(String email);

    boolean register(RegisterInfo registerInfo) ;

    boolean checkRegisterInfo(RegisterInfo registerInfo);
}
